package com.ysu.demo;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.ysu.demo.config.MybatisConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.ysu.demo.mapper")
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    @Bean
    public MetaObjectHandler metaObjectHandler(){
        return new MybatisConfig();
    }
}
